import {createApp} from "vue";
import App  from "./04_teleport内置组件/App";
import "animate.css"
import registerDirectives from "@/directives";
import plugins_object from "@/plugins/plugins_object";
import plygins_function from "@/plugins/plygins_function";
const  app = createApp(App);
//注册的全局的组件
registerDirectives(app);

//相当于拿到这个对象，然后执行install操作
app.use(plugins_object);

app.use(plygins_function);
//全局指令
// app.directives("focus",{
//     focus:{
//         //组件挂载时
//         mounted(el,bindings,vnode,preVnode){
//             console.log("focus mounted")
//             el.focus();
//         }
//     }
// })

app.mount("#app")